* {
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.login-link, .logout-link {
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-left: 10px;
    font-size: 16px;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.login-link:hover, .logout-link:hover {
    background-color: #45a049;
}

.user-info {
    text-align: center;
    margin-bottom: 20px;
}

.user-info img {
    width: 200px;
    height: 200px;
    border-radius: 100px;
    margin-bottom: 10px;
}

.user-info h2 {
    font-size: 24px;
    margin-bottom: 5px;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.user-info h4 {
    font-size: 26px;
    color: #666;
    line-height: 1.6;
}

.user-info p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.info-box, .edit-box {
    padding: 20px;
    background-color: #f4f4f4;
    background-image: url('../images图片库/背景图/背景1.3 .jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #ccc;
    border-radius: 10px;
    margin-bottom: 20px;
    animation: flyIn 1s ease;
}

.info-box {
    animation-name: flyInFromTop;
}

.edit-box {
    animation-name: flyInFromBottom;
}

.section {
    margin-bottom: 20px;
}

.section h3 {
    font-size: 20px;
    margin-bottom: 10px;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.profile-form {
    display: flex;
    flex-direction: column;
}

.profile-form label {
    margin-bottom: 5px;
    font-size: 16px;
}

.profile-form input[type="text"], .profile-form input[type="tel"], .profile-form input[type="email"] {
    margin-bottom: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.profile-form button {
    align-self: flex-end;
}

.save-avatar-btn, .save-other-info-btn {
    background-color: #4CAF50;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.save-avatar-btn:hover, .save-other-info-btn:hover {
    background-color: #45a049;
}

.current-info {
    column-count: 2; /* Divide into two columns */
    column-gap: 20px; /* Gap between columns */
    color: #000; /* Text color */
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.current-info h3 {
    font-size: 24px; /* Increase font size for headings */
    margin-bottom: 10px;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.current-info p {
    font-size: 18px; /* Increase font size for paragraphs */
    margin-bottom: 10px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    background-color: #ffffe0; /* Light yellow background */
}

.edit-forms {
    display: flex;
    justify-content: space-between;
}

.left-edit, .right-edit {
    width: 48%;
}

.avatar-preview {
    margin-top: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
}

.avatar-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 5px;
}

/* Fly-in animation */
@keyframes flyIn {
    from {
        opacity: 0;
        transform: translateY(-100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes flyInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes flyInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 响应式设计 - 增强版 */
@media screen and (max-width: 1200px) {
    .profile-container {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-pic-container {
        margin-bottom: 30px;
    }
    
    .skills-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .profile-info {
        padding: 20px;
    }
    
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-links {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .profile-pic {
        width: 120px;
        height: 120px;
    }
    
    .profile-title h1 {
        font-size: 1.8rem;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .contact-info p {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media screen and (max-width: 360px) {
    .profile-bio {
        font-size: 0.9rem;
    }
    
    .social-links a {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}